package com.javandad.app.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.javandad.app.shared.entity.User;
import com.javandad.app.shared.entity.UserGroup;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("network")
public interface NetworkService extends RemoteService {
	List<User> getFriends(String username);
	List<UserGroup> getGroups(String username);
	
	List<User> getMembers(String groupURL);
	boolean isMember(String username, String groupURL);
	boolean addMember(String username, String groupURL);
	boolean removeMember(String username, String groupURL);
	boolean createOrJoinGroup(String username, String groupURL);
}
